package org.jeecg.modules.core.passdata.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.modules.core.passdata.params.HighwayReportStatisticsParams;
import org.jeecg.modules.core.passdata.service.HighwayReportStatisticsService;
import org.jeecg.modules.core.passdata.vo.HighwayReportStatisticsVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: 公路超载数据表
 * @Author: jeecg-boot
 * @Date: 2021-07-21
 * @Version: V1.0
 */
@Api(tags = "公路超载报表统计")
@RestController
@RequestMapping("/highway/highwayReportStatistics")
@Slf4j
public class HighwayReportStatisticsController {

    @Resource
    private HighwayReportStatisticsService highwayReportStatisticsService;

    /**
     * 分页列表查询
     *
     * @param
     * @return
     */
    @AutoLog(value = "公路超载报表统计-分页列表查询")
    @ApiOperation(value = "公路超载报表统计-分页列表查询", notes = "公路超载报表统计-分页列表查询")
    @PostMapping(value = "/list")
    public Result<?> queryPageList(@RequestBody HighwayReportStatisticsParams params) {
        List<HighwayReportStatisticsVo> list = highwayReportStatisticsService.queryPageList(params);
        return Result.OK(list);
    }

}
